//---------------------------------------------------------------------
// Copyright (C) 2010 - Cobalt Solution / Sebastien Leon              |
//---------------------------------------------------------------------
// This software is under dual licence: commercial licence + GPL v3   |
// To keep closed your modification of this software, you need to     |
// contact me to obtain a commercial licence.                         |
// Any other derivated work should remain Open Source.                |
// Contact me for a licence, a question or if you want to commit      |
// your code to the main tree: seb at cobaltsolutions dot info        |
//---------------------------------------------------------------------

#include <QApplication>
#include "core.h"
#include "mainForm.h"
#include "ftpbrowser.h"

int main(int argc, char *argv[])
{
  QApplication app(argc, argv);
  app.setWindowIcon(QIcon(":/logo.ico"));

  // Core class (1 instance only)
  // Also used as a service
  Core core;

  // GUI for non-serviced version
  Q_INIT_RESOURCE(img);
  MainForm f(NULL, core);
  f.show();

//  FtpWindow ftpWin;
//  ftpWin.show();

  return app.exec();
}
//----------------------------------------------------


// FTP Com example:
/*
Status:	Connecting to 192.168.1.100:21...
Status:	Connection established, waiting for welcome message...
Response:	220 JC5 192.168.1.100 FTP server (v16) ready.
Command:	USER staubli
Response:	331 Password required for staubli.
Command:	PASS 
Response:	230 User Staubli logged in.
Command:	SYST
Response:	215 OS Staubli
Command:	FEAT
Response:	500 'FEAT': command not understood.
Status:	Connected
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/users" is current directory.
Command:	TYPE I
Response:	200 Type set to I.
Command:	PASV
Response:	504 Mode passif non implemente.
Command:	PORT 192,168,1,159,12,140
Response:	200 PORT command successful.
Command:	LIST
Response:	150 Opening BINARY mode data connection for /bin/ls -l -a -u.
Response:	226 Transfer complete.
Status:	Directory listing successful
*/